package com.lyltim.demo.controller;

import com.lyltim.demo.bean.User;
import com.lyltim.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {
    @Autowired
    UserMapper userMapper;

    @GetMapping("/")
    public List<User>  selectList() {
        return userMapper.selectList(null);
    }
}
